#ifndef PLAYERACTION_H
# define PLAYERACTION_H

#include <graphics.h>
#include <conio.h>

typedef struct//Cursor
{
  int X, Y;
  int GridX, GridY;
  int HP;
  char Key;
  char Treasure;
}Object;

void PlayerAct(Object *pCursor, char *pMap, int *Continue);

void Mouse();//Menu, Help

int CouldGo(Object *pCursor, char *pMap, char Key);
void MoveInArr(Object *pCursor, char Key);
void MoveOnMap(Object *pCursor, char Key);

void MouseCursor(Object *pCursor, int *Continue);

void JumpTo(Object *pCursor, int GridX, int GridY);
int JumpForward(Object *pCursor);
int JumpBackward(Object *pCursor);
int JumpEOL(Object *pCursor);
int JumpTOL(Object *pCursor);

void GridXY2XY(int GridX, int GridY, int *X, int *Y);

#include "FileUnit.h"

#endif
